<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

<B><A HREF="MEMCHR.html">MEMCHR(3)</A></B>	       FreeBSD Library Functions Manual 	     <B><A HREF="MEMCHR.html">MEMCHR(3)</A></B>


</PRE>
<H2>NAME</H2><PRE>
     <B>memchr</B> - locate byte in byte string


</PRE>
<H2>SYNOPSIS</H2><PRE>
     <B>#include</B> <B>&lt;string.h&gt;</B>

     <I>void</I> <I>*</I>
     <B>memchr</B>(<I>const</I> <I>void</I> <I>*b</I>, <I>int</I> <I>c</I>, <I>size</I><B>_</B><I>t</I> <I>len</I>)


</PRE>
<H2>DESCRIPTION</H2><PRE>
     The <B>memchr</B>() function locates the first occurrence of <I>c</I> (converted to an
     unsigned char) in string <I>b</I>.


</PRE>
<H2>RETURN VALUES</H2><PRE>
     The <B>memchr</B>() function returns a pointer to the byte located, or NULL if
     no such byte exists within <I>len</I> bytes.


</PRE>
<H2>SEE ALSO</H2><PRE>
     <B><A HREF="index.html">index(3)</A></B>,	<B><A HREF="rindex.html">rindex(3)</A></B>,  <B><A HREF="strchr.html">strchr(3)</A></B>,	<B><A HREF="strcspn.html">strcspn(3)</A></B>,  <B><A HREF="strpbrk.html">strpbrk(3)</A></B>,  <B><A HREF="strrchr.html">strrchr(3)</A></B>,
     <B><A HREF="strsep.html">strsep(3)</A></B>,  <B><A HREF="strspn.html">strspn(3)</A></B>,  <B><A HREF="strstr.html">strstr(3)</A></B>,  <B><A HREF="strtok.html">strtok(3)</A></B>


</PRE>
<H2>STANDARDS</H2><PRE>
     The <B>memchr</B>() function conforms to ISO 9899: 1990 (``ISO C'').

BSD				 June 4, 1993				     1
</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>
